package org.example.repository;

import org.apache.ibatis.annotations.Param;
import org.example.entity.Order;
import org.example.entity.User;

import java.util.List;

public interface OrderRepository {
    public void save(Order order);
    public List<Order> findAllByUid(@Param("index") int index, @Param("limit") int limit, @Param("uid") long uid);
    public int countByUid(@Param("uid")long uid);
    public List<Order> findAll(@Param("index") int index, @Param("limit") int limit);
    public void updateStatus(@Param("id") long id);
    public void updateStatus2(@Param("id") long id);
    public int count();
    User findUserById(@Param("id") int id);
}
